<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>指纹详情</title>
  <link rel="shortcut icon" href="__PUBLIC__/favicon.ico">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="__PUBLIC__/style/template.css" media="all">
</head>
<body>
  <div style="margin:30px;">
    <div class="layui-form">  
        <div class="layui-card layui-card-add">            
          <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>应用名称</label>
            <div class="layui-input-block">
              <input type="text" name="app_name" readonly class="layui-input" lay-verify="required" value="{$finger.app_name}">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">应用版本</label>
            <div class="layui-input-block">
              <input type="text" name="app_version" readonly class="layui-input" value="{$finger.app_version}">
            </div>
          </div>
          <div class="layui-form-item">
              <label class="layui-form-label">应用类型</label>
              <div class="layui-input-block">
                <select name="app_type" lay-verify="" id="app_type">
                  <option value=""></option>
                  <option value="CMS系统">CMS系统</option>
                  <option value="解析容器">解析容器</option>
              </select>
              </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">开发脚本</label>
            <div class="layui-input-block">
              <select name="app_script" lay-verify="" id="app_script">
                <option value=""></option>
                <option value="PHP">PHP</option>
                <option value="ASP.NET">ASP.NET</option>
                <option value="ASP">ASP</option>
                <option value="JSP">JSP</option>
                <option value="Python">Python</option>
                <option value="Go">Go</option>
                <option value="Perl">Perl</option>
                <option value="ColdFusion">ColdFusion</option>
            </select>
            </div>
          </div>
        </div>
        <div class="layui-card layui-card-add">
          <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>识别方式</label>
            <div class="layui-input-block">
              <select name="finger_match_type" lay-verify="" id="finger_match_type">
                <option value="1">关键字匹配</option>
                <option value="2">正则匹配</option>
            </select>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>请求路径</label>
            <div class="layui-input-block">
              <input type="text" name="finger_uri" readonly class="layui-input" value="{$finger.uri}">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>请求方式</label>
            <div class="layui-input-block">
              <select name="finger_method" lay-verify="" id="finger_method">
                <option value="1">GET请求</option>
                <option value="2">POST请求</option>
            </select>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">POST数据</label>
            <div class="layui-input-block">
              <input type="text" name="finger_post_data" readonly class="layui-input" value="{$finger.post_data}">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">POST类型</label>
            <div class="layui-input-block">
              <select name="finger_content_type" lay-verify="" id="finger_content_type">
                <option value="">仅当请求方式为POST时，选择该项有效</option>
                <option value="application/x-www-form-urlencoded">application/x-www-form-urlencoded</option>
                <option value="multipart/form-data">multipart/form-data</option>
                <option value="application/json">application/json</option>
                <option value="text/xml">text/xml</option>
                <option value="binary (application/octet-stream)">binary (application/octet-stream)</option>
            </select>
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">Cookies</label>
            <div class="layui-input-block">
              <input type="text" name="finger_cookie" readonly class="layui-input" value="{$finger.cookies}">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">指纹特征</label>
            <div class="layui-input-block">
              <input type="text" name="finger_signature" readonly class="layui-input" lay-verify="required" value="{$finger.signature}">
            </div>
          </div>
          <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">指纹描述</label>
            <div class="layui-input-block">
              <textarea name="finger_desc" readonly class="layui-textarea">{$finger.description}</textarea>
            </div>
          </div>
        </div>
      </div>
  </div>

  
  <script src="__PUBLIC__/layui/layui.js"></script>  
  <script>
    layui.use('form', function(){
        var form = layui.form
        ,$ = layui.$;
        
        $("#app_type").val("{$finger.app_type}");
        $("#app_script").val("{$finger.app_script}");
        $("#finger_match_type").val("{$finger.match_type}");
        $("#finger_method").val("{$finger.method}");
        $("#finger_content_type").val("{$finger.content_type}");

        form.render('select');
    });
  </script>
</body>
</html>
